package com.Day04;

public class Circle  extends Shape{

    private int radius;

    public Circle(int radius) {
        this.radius = radius;
    }

    //计算周长
    public Double Perimnter(){
        return 2 * Math.PI * radius;
    }

    //计算面积

    public Double Area(){
        return Math.PI * radius * radius;
    }
}
